Repository navigation
feat(genre-tree): expose the region lexicon itemId - #624
Merged
Merged
Conversation
Andreas-Garcia
enabled auto-merge (squash)
December 5, 2026 12:28
This was referenced Dec 5, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #623.
What changes
@behindthemusictree/grow-api>=0.1.0-next.17(dev pin0.1.0-next.17), whosezRegionMapGenresResponseaddsitemId: the region map index's item ID, a QID or aLOCAL:graph ID (Resolve region map references through active genre graph identities grow-the-music-tree-api#716, #719).wikidataIdstays as a deprecated alias.useRegionGenreLexiconnow declares its return type as the exportedRegionGenreLexicon, whose entries areRegionGenreLexiconEntry. Before, tsup inlined the entry fields of the grow-api the package was built against intoindex.d.ts, so consumers on a newer grow-api did not see new fields (44.0.4 hiditemIdfrom the frontend even though it parsed it at runtime).useRegionGenreLexicon.test.ts: parsing keepsitemIdforLOCAL:region-q10690and a QID, plus disabled, loading (query key, schema, infinite cache, abort signal), success and error states.__fixtures__/grow/regionGenres.jsonrecaptured from staging, which servesitemId.Consumer migration
Consumers must install grow-api
0.1.0-next.17or later. The frontend (BehindTheMusicTree/grow-the-music-tree-frontend#662, PR #663) already does, and can drop its localuseRegionLexiconre-typing once it adopts this release.Validation
pnpm lint,pnpm build,pnpm test(app-kit 82 files, app-kit-ui 50 files) pass. The builtdist/genre-tree/index.d.tsdeclaresuseRegionGenreLexicon(...): RegionGenreLexicon. Playground e2e not run: its mock serves an empty lexicon.